﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.SQLServerDAL;
using Hangjing.Model;
using Hangjing.Common;


namespace Html5
{
    public partial class showeleorder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetData();
            }
        }


        void GetData()
        {
            string id = HjNetHelper.GetQueryString("id");
            CustorderInfo model = new shopeleCustorder().GetModel(id);

         
            IList<CustorderInfo> list = new List<CustorderInfo>();
            list.Add(model);
            WebUtility.BindRepeater(rptorder, list);
            WebUtility.BindRepeater(rptorder1, list);
            WebUtility.BindRepeater(rptorder2, list);


            WebUtility.BindRepeater(rptfood, new shopeleFoodlist().GetAllByOrderID(id));

       



        }


    }
}
